//
//  XDWebPageMgrCell.m
//  XDEducation
//
//  Created by apple on 2017/5/2.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "XDWebPageMgrCell.h"
#import "XDWebPageMgr.h"

@interface XDWebPageMgrCell ()

@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@end

@implementation XDWebPageMgrCell

-(void)setWebPageMgr:(XDWebPageMgr *)webPageMgr{
    
    _webPageMgr  = webPageMgr;
    
    _titleLabel.text = webPageMgr.addrName;
    
    _contentLabel.text = webPageMgr.addrUrl;
}

- (IBAction)deleteBtnClicked:(id)sender {
    
    if (self.deleteBlock) {
        self.deleteBlock(self.webPageMgr.ID);
    }
}

@end
